﻿using HYBY.Task.DataEntity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Web.Models
{
    public class TAModularModel
    {
        public TAModularModel()
        {

        }

        public TAModularModel(TAModularEntity entity)
        {
            this.Id = Convert.ToInt32(entity.ID);
            this.ModularTypeId = entity.ModularTypeId;
            this.FatherId = entity.FatherId;
            this.ProductId = entity.ProductId;
            this.ModularName = entity.ModularName;
            this.ResearchHeadCard = entity.ResearchHeadCard;
            this.ResearchHead = entity.ResearchHead;
            this.UEDHeadCard = entity.UEDHeadCard;
            this.UEDHead = entity.UEDHead;
            this.DevelopmentHeadCard = entity.DevelopmentHeadCard;
            this.DevelopmentHead = entity.DevelopmentHead;
            this.TestHeadCard = entity.TestHeadCard;
            this.TestHead = entity.TestHead;
            this.ApplicationHeadCard = entity.ApplicationHeadCard;
            this.ApplicationHead = entity.ApplicationHead;


        }
        /// <summary>
        /// 
        /// </summary> 
        public Int32 Id
        {
            get;
            set;
        }
        /// <summary>
        /// 模块类型id（1=产品线 2=系统  3=模块 4=科目 ）
        /// </summary> 
        public Int32 ModularTypeId
        {
            get;
            set;
        }
        /// <summary>
        /// 父级id（产品线的父级为0）
        /// </summary> 
        public Int32 FatherId
        {
            get;
            set;
        }
        /// <summary>
        /// 产品id（1=商务 2=主案 3=工程 4=材料 5=造价 6=财务 7= 人事 8=家具弱电智能硬件）
        /// </summary> 
        public Int32 ProductId
        {
            get;
            set;
        }
        /// <summary>
        /// 模块名称
        /// </summary> 
        public String ModularName
        {
            get;
            set;
        }
        /// <summary>
        /// 研发负责人卡号
        /// </summary> 
        public String ResearchHeadCard
        {
            get;
            set;
        }
        /// <summary>
        /// 研发负责人
        /// </summary> 
        public String ResearchHead
        {
            get;
            set;
        }
        /// <summary>
        /// UED负责人卡号
        /// </summary> 
        public String UEDHeadCard
        {
            get;
            set;
        }
        /// <summary>
        /// UED负责人
        /// </summary> 
        public String UEDHead
        {
            get;
            set;
        }
        /// <summary>
        /// 开发负责人卡号
        /// </summary> 
        public String DevelopmentHeadCard
        {
            get;
            set;
        }
        /// <summary>
        /// 开发负责人
        /// </summary> 
        public String DevelopmentHead
        {
            get;
            set;
        }
        /// <summary>
        /// 测试负责人卡号
        /// </summary> 
        public String TestHeadCard
        {
            get;
            set;
        }
        /// <summary>
        /// 测试负责人
        /// </summary> 
        public String TestHead
        {
            get;
            set;
        }
        /// <summary>
        /// 应用负责人卡号
        /// </summary> 
        public String ApplicationHeadCard
        {
            get;
            set;
        }
        /// <summary>
        /// 应用负责人
        /// </summary>
        public String ApplicationHead
        {
            get;
            set;
        }


        public int modelId { get; set; }

        public int subjectId { get; set; }
    }
}